{ INFORMATICS.MCCME.RU
  Problem statement: http://informatics.mccme.ru/moodle/mod/statements/view3.php?chapterid=156
  Verdict: Accepted
}
uses 
	SysUtils, Math;
 
var
	n:longint;
 
procedure go(i:longint);
 
var
	k:longint;
 
begin
read(k);
if i<n then go(i+1);
write(k,' ');
end;
 
begin
reset(input,'input.txt');
rewrite(output,'output.txt');
read(n);
go(1);
end.